package com.springboot.cloud.sysadmin.organization.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseQueryForm;
import com.springboot.cloud.sysadmin.organization.entity.param.ShuFileQueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;
import java.util.List;

/**
 * Created by ZengJian on 2021/3/12 0012 下午 2:39
 */
@ApiModel
@Data
public class ShuFileQueryForm extends BaseQueryForm<ShuFileQueryParam> {

    @ApiModelProperty(value = "文件地址")
    private String fileAddress;

    @ApiModelProperty(value = "文件描述")
    private String description;

    @ApiModelProperty(value = "文件状态（正常、停用）")
    private boolean enabled = true;

    @ApiModelProperty(value = "是否已删除Y：已删除，N：未删除")
    private String deleted = "N";

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询开始时间必须小于当前日期")
    @ApiModelProperty(value = "查询开始时间")
    private Date createdTimeStart;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询结束时间必须小于当前日期")
    @ApiModelProperty(value = "查询结束时间")
    private Date createdTimeEnd;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private List<Date> createdTime;

}
